// pages/form/form.js
Page({
  data: {
    eduArray: ['请选择学历','学历1', '学历2', '学历3'],
    eduIndex: 0,
    typeArray: ['请选择专业类别', '专业类别1', '专业类别2','专业类别3'],
    typeIndex: 0,
    speArray: ['请选择专业', '专业1', '专业2', '专业3'],
    speIndex: 0,
    date: '请输入你的出生年月',
  },
  eduPickerChange: function(e) {
    this.setData({
      eduIndex: e.detail.value
    })
  },
  typePickerChange: function(e) {
    this.setData({
      typeIndex: e.detail.value
    })
  },
  spePickerChange: function(e) {
    this.setData({
      speIndex: e.detail.value
    })
  },
  submitForm: function(e) {
    wx.navigateTo({
      url: '../record/record',
    })
  },
  bindDateChange: function (e) {
    this.setData({
      date: e.detail.value
    })
  },
})